package ioc2;

public class Framework {
    private Bottom bottom;
    private String color;
    public Framework(Bottom bottom,String color){
        this.bottom = bottom;
        this.color = color;
    }
    public void init(){
        System.out.println("Framework init ,车身："+color);
        bottom.init();
    }
}
